package com.egov.wrdmp.reporting.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.egov.wrdmp.reporting.service.PentahoReportService;


/**
 * @author abhijeet
 *
 */
@Controller
public class PentahoController {
	/**
	 * @author Abhijeet Garde
	 * 
	 * The method generateReport() takes a map as the final parameter based in which it decides about what format the report is in and what report to generate.
	 */
	@Autowired
	PentahoReportService pentahoReportService; 
	
	@RequestMapping("/pentahoreporting")
    public void generateReport(HttpServletRequest request,HttpServletResponse response,Map paramMap) {
		
		pentahoReportService.generateReport(request,response,paramMap);
    }
}
